import type { Timer } from '../../types/utils'

export type CacheKey = string

export interface CacheData<Data = any, P extends unknown[] = any> {
  data: Data
  params: P
  time: number
}

export type CacheResult = CacheData & {
  timer?: Timer
}
